package com.alex.dao;

import com.alex.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//@Mapper
public interface UserMapper {
    @Select("select * from user where id=#{id}")
    User getUser(@Param("id") int id);

    @Select("select * from user")
    List<User> getUsers();
}
